#ifndef TOOLBAR_H
#define TOOLBAR_H

#include <QToolBar>
#include <QAction>
#include <QMap>
#include <QPair>

typedef QList<QPair<QString, QString>> QStringPairList;
typedef QPair<QString, QString> QStringPair;

class ToolBar : public QToolBar
{
    Q_OBJECT
public:
    explicit ToolBar(QWidget *parent = nullptr);
    void initUI();
    void initConnections();

signals:

public slots:
    void actionStartToggle();
    void actionRedo();
    void actionUndo();
    void actionCode();

private:
    QMap<QString, QAction*> mActionMap;
    QStringPairList mActionMethod;
};

#endif // TOOLBAR_H
